package org.shindou09.easytagforpage.util;

import java.net.URL;

public class ClassLoaderUtil {

	private ClassLoaderUtil(){}
	
	public static URL getResource(String resourceName,Class cls){
		URL url=null;
		
		url=Thread.currentThread().getContextClassLoader().getResource(resourceName);
		
		if(url==null){
			url=ClassLoaderUtil.class.getClassLoader().getResource(resourceName);
		}
		
		if(url==null){
			url=cls.getClassLoader().getResource(resourceName);
		}
		
		return url;
	}
}
